// modules/settingModule/pages/serve/serve.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
      list:[
        {
          name:"预约列表",
          icon:"/asstess/yuod.png"
        },
        {
          name:"预约记录",
          icon:"/asstess/yuod.png"
        }
      ],
      name:""
  },

  
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    var info = wx.getStorageSync('suser')
    this.setData({
      userinfo:info
    })                
      
  },
  toAppointment(e){
    var index=e.currentTarget.dataset.index
    switch(index){
      case 0:
        wx.navigateTo({
          url: '../appointment/appointment',
        })
        break
        case 1:
          wx.navigateTo({
            url: '../servedetail/servedetail',
          })
          break
    }
 
  }

})